import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加暑期志愿者
export function addSummerVolunteer(data) {
  return request({
    url: baseUrl + "/pc/summer-volunteer",
    method: "post",
    data
  });
}

//查询暑期志愿者
export function getSummerVolunteer(data) {
  return request({
    url: baseUrl + "/pc/summer-volunteer",
    method: "get",
    params: data
  });
}

//删除暑期志愿者
export function deleteSummerVolunteer(data) {
  return request({
    url: baseUrl + "/pc/summer-volunteer",
    method: "delete",
    data
  });
}

//更新暑期志愿者
export function updateSummerVolunteer(data) {
  return request({
    url: baseUrl + "/pc/summer-volunteer",
    method: "put",
    data
  });
}

//导入暑期志愿者
export function importSummerVolunteer(data) {
  return request({
    url: baseUrl + "/pc/summer-volunteer",
    method: "post",
    data
  });
}
